/**
 * Created by IntelliJ IDEA.
 * User: alexander
 * Date: 13.09.11
 * Time: 14:45
 * To change this template use File | Settings | File Templates.
 */
package com.etc.buttons {
import com.etc.Utils;

import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFormat;

public class ButtonBase extends Sprite {
	public function ButtonBase( text: String, bc: Number, tc: Number ) {
		addChild( Utils.rect( 80,40,bc ));
		var tf:TextField = new TextField();
		var format:TextFormat = new TextFormat();
		format.font = "Arial";
		format.size = 14;
		format.underline = true;
		tf.defaultTextFormat = format;
		tf.x = 20;
		tf.y = 10;
		addChild( tf );
		tf.text = text;
	}
}
}
